package cn.xinfei.xdecision.common.model.component.guiderule;

import cn.xinfei.xdecision.common.model.BaseDO;
import cn.xinfei.xdecision.common.model.component.IgnoredParamCheck;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("`t_rule_version`")
public class RuleVersion extends BaseDO {
    private static final long serialVersionUID = -1850194333747447612L;
    /**
     * 规则id
     */
    private Long ruleId;

    /**
     * 规则code
     */
    private String ruleCode;

    /**
     * 版本号
     */
    private Long versionNo;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 拒绝分支码，允许更新时清空拒绝码配置
     */
    @IgnoredParamCheck
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long rejectBranchId;
    /**
     * 状态：0:新建，1:锁定
     */
    @IgnoredParamCheck
    private Integer status;

}
